package com.ruoyi.commissionconfig.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 返佣配置对象 user_level_commission_config
 * 
 * @author ruoyi
 * @date 2025-11-20
 */
public class UserLevelCommissionConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户等级 */
    @Excel(name = "用户等级")
    private Long userLevel;

    /** 返佣层级 */
    @Excel(name = "返佣层级")
    private Long level;

    /** 返佣类型 */
    @Excel(name = "返佣类型")
    private Long commissionType;

    /** 返佣比例 */
    @Excel(name = "返佣比例")
    private BigDecimal rate;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Long isActive;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserLevel(Long userLevel) 
    {
        this.userLevel = userLevel;
    }

    public Long getUserLevel() 
    {
        return userLevel;
    }

    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    public void setCommissionType(Long commissionType) 
    {
        this.commissionType = commissionType;
    }

    public Long getCommissionType() 
    {
        return commissionType;
    }

    public void setRate(BigDecimal rate) 
    {
        this.rate = rate;
    }

    public BigDecimal getRate() 
    {
        return rate;
    }

    public void setIsActive(Long isActive) 
    {
        this.isActive = isActive;
    }

    public Long getIsActive() 
    {
        return isActive;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userLevel", getUserLevel())
            .append("level", getLevel())
            .append("commissionType", getCommissionType())
            .append("rate", getRate())
            .append("isActive", getIsActive())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
